package cn.tom.org.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("t_employee")
public class Employee {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String username;
    private String phone;
    private String email;
    private String salt;
    private String password;
    private Integer age;
    private Integer state;
    private Long departmentId;
    private Long logininfoId;
    private Long shopId;

    @TableField(exist = false)
    @ApiModelProperty(hidden = true)
    private Department department;

    @TableField(exist = false)
    @ApiModelProperty(hidden = true)
    private Shop shop;
}
